<ui-select name="{{name}}" ng-model="$parent.ngModel" required="{{required}}" ng-disabled="ifDisabled"
           on-select="_onSelect($select.selected)">
    <ui-select-match allow-clear="{{allowClear}}">
        <div ng-bind="getUserName($select.selected)"></div>
    </ui-select-match>
    <ui-select-choices repeat="user.idmUserId as user in users | filter: $select.search"
                       refresh="getUsers($select.search)" refresh-delay="50">
        <div ng-bind="getUserName(user)"></div>
    </ui-select-choices>
    <ui-select-no-choice>
        No available option.
    </ui-select-no-choice>
</ui-select>
